const fs = require('fs')

// 同步读取config.json文件,编码为utf8
let config = JSON.parse(fs.readFileSync('config.json', 'utf8'))
let email_user = config.email.user
let email_pass = config.email.pass
let redis_host = config.redis.host
let redis_port = config.redis.port
let redis_pass = config.redis.pass

// 导出邮件和redis相关的配置
module.exports = {
    email_user,
    email_pass,
    redis_host,
    redis_port,
    redis_pass
}